
<div class="w100p bgl">
    <div class="w100p bgr">
        <div class="inner_container">
            <?php echo $functions->appPostcardMenu(true);?>
            <div class="filter float_right" style="margin: 5px 15px 5px 5px" >
                <label>Filter:</label>
                <select class="required" id="filter_cat">
                    <option value="">Show All</option>
                    <?php
                    foreach ($categories as $value) {
                        if($current_category_id == $value->id){
                            $cur = "selected";
                        }else{
                            $cur = "";
                        }
                        echo "<option {$cur} value='{$value->id}'>{$value->title}</option>";
                    }
                    ?>
                </select>
            </div>
            <br clear="both" />
            <div id="folder" class="postcardBlock">
                <table class="widefat" cellspacing="0">
                    <thead>
                        <tr>
                            <th>Postcard types</th>
                        </tr>
                    </thead>

                    <tbody>
                        
                        <tr folder="<?php echo $config['folder_template']?>" class="<?php echo $current_folder == $config['folder_template'] ? 'current' : '' ?> click bg_gray1">
                            <td>Postcard templates </td>
                        </tr>
                        <tr folder="<?php echo $config['folder_generated'] ?>" class="<?php echo $current_folder == $config['folder_generated'] ? 'current' : '' ?> click bg_gray2">
                            <td>User generated postcards</td>
                        </tr>

                    </tbody>
                </table>
            </div>
            <div id="imageList" class="postcardBlock gallery1">
                <?php echo $content_view?>
            </div>
            <br clear="both" />
        </div>
    </div>
</div>